//
//  UITextField+WSExpansion.m
//  FamilyLinkPro
//
//  Created by 江鹏 on 2023/9/5.
//  Copyright © 2023 SiterWell.Co.,Ltd. All rights reserved.
//

#import "UITextField+WSExpansion.h"

@implementation UITextField (WSExpansion)


- (NSMutableAttributedString*)placeHolderAttributedString:(NSString*)holderText color:(UIColor*)color fontSize:(CGFloat)size {
    NSMutableAttributedString * placeholder = [[NSMutableAttributedString alloc] initWithString:holderText];
    [placeholder addAttribute:NSForegroundColorAttributeName value:color range:NSMakeRange(0,holderText.length)];
    [placeholder addAttribute:NSFontAttributeName value:[UIFont fontWithName:@"PingFang-SC-Medium" size:size] range:NSMakeRange(0, holderText.length)];
    
    return placeholder;
}




@end
